package com.week1.day02;

import java.util.Scanner;

public class Demo02 {
    public static void main(String[] args) {
        System.out.println("请输入你的跑步成绩");
        Scanner sc = new Scanner(System.in);
        double grade = sc.nextDouble();
        if(grade<15){
            System.out.println("可以进入决赛，请输入你的性别，男或女");
            String sex = sc.next();
            if(sex.equals("男")){
                System.out.println("进入男子组决赛");
            }else if(sex.equals("女")){
                System.out.println("进入女子组决赛");
            }else{
                System.out.println("输入有误");
            }
        }else{
            System.out.println("你被淘汰了");
        }
    }
}
